<template>
	<view class="page-shopCar page">
		<view class="b-header">
			<pageHeader title="购物车" :showBack="false"></pageHeader>
			<tab :datas="tab" @tabClick="tabClick"></tab>
		</view>
		<view class="b-content">
			<view class="p-t-40 p-l-30 p-r-30">
				<carItem v-for="item in 10" :key="item"></carItem>
			</view>
			<view class="calc fsb df-ac">
				<view class="c-000">
					<view v-if="check" class="df">
						<image src="../../static/imgs/check.png" class="check-icon" mode=""></image>
						<view class="fz24">取消全选</view>
					</view>
					<view v-if="!check" class="df">
						<image src="../../static/imgs/uncheck.png" class="check-icon" mode=""></image>
						<view class="fz24">全选 </view>
					</view>
				</view>
				<view class="df-ac">
					<view class="c-fe fz24 mr-20">合计：￥352</view>
					<view class="btn-calc">立即结算</view>
				</view>
			</view>
			<pageFooter></pageFooter>
		</view>
	</view>
</template>

<script>
	import tab from '../../components/tab.vue'
	import carItem from '../../components/carItem.vue'
	export default {
		components: {
			tab,
			carItem
		},
		data() {
			return {
				tab:[
					{id:1,name:'正价商品'},
					{id:2,name:'直播商品'},
					{id:3,name:'秒杀商品'},
				],
				check:false
			}
		},
		methods: {
			tabClick(){}
		}
	}
</script>

<style lang="scss">
.page-shopCar {
	.b-header {
		background-color: #fff;
		z-index: 999;
	}
	.b-content {
		padding-bottom: 200rpx;
		.check-icon {
			width: 36rpx;
			height: 36rpx;
			margin-right: 10rpx;
		}
	}
	.calc {
		position: fixed;
		width: 100%;
		left: 0;
		bottom: 110rpx;
		padding: 30rpx 30rpx 40rpx 30rpx;
		background-color: #fff;
		z-index: 999;
		.btn-calc {
			width: 160rpx;
			height: 58rpx;
			line-height: 58rpx;
			text-align: center;
			color: #FE5634;
			border: 1px solid #FE5634;
			font-size: 24rpx;
			border-radius: 7rpx;
		}
	}
}
</style>
